import redis
import sys

class icanSeqReleaseTask():

    def __init__(self, host='localhost', port=6379):
        pool = redis.ConnectionPool(host=host, port=port, db=0)
        self.r = redis.StrictRedis(connection_pool=pool)

    def run(self,command):
        self.r.lrem('RunningQueue',0,command)


if __name__ == "__main__":
    inst  = icanSeqReleaseTask()
    inst.run(sys.argv[1])